#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_Achievement.nanopb.h"
#ifndef MAX_ACHIEVEMENT_ACHIEVEMENTAWARDS_NUM
#define MAX_ACHIEVEMENT_ACHIEVEMENTAWARDS_NUM 50
#endif

class AchievementAwardsDesc : public NFI_DESC_ARRAY_TEMPLATE_MACRO(AchievementAwardsDesc, E_AchievementAwards, EOT_CONST_ACHIEVEMENT_ACHIEVEMENTAWARDS_DESC_ID, MAX_ACHIEVEMENT_ACHIEVEMENTAWARDS_NUM, 2)
public:
	AchievementAwardsDesc();
	virtual ~AchievementAwardsDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
